﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LP580.CG;
public partial class ascx_UserInfo : System.Web.UI.UserControl
{
    private int _uid = 0;
    public int uid
    {
        get { return _uid; }
        set { _uid = value; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        clsUserCompanyInfo cls = new clsUserCompanyInfo(uid);
        litcon.Text = string.Format(@"<table width='177' border='0' cellspacing='0' cellpadding='0'>
            <tr>
              <td height='101' align='center' valign='top'><img src='{5}' width='170' height='85' class='dianmp_imgboder'></td>
            </tr>
            <tr>
              <td align='center' class='dianmp_name'>{0}</td>
            </tr>
          </table>
            <table width='166' border='0' cellspacing='0' cellpadding='0'>
              <tr>
                <td height='32' align='left' valign='bottom'><img src='images/dianpu_contact.gif' width='100' height='19'></td>
              </tr>
              <tr>
                <td height='112' align='left'>客服专线：{4}<br>
                  售后专线：{4}<br>
                  联系人：{1}<br>
                  地址：{2}</td>
              </tr>
              <tr>", cls.CompanyName, cls.ContactPerson, cls.CompanyAddress, cls.ViewCount, cls.Tel, clsCompanyPhoto.GetByUserIDType(uid, 0).PhotoPath);
        litcon.Text += string.Format("<td height='39' align='center'><a href='javascript:addFav(\"c\",{0})'><img src='images/dianpu_sc.gif' width='82' height='31'></a></td>", cls.UserID);
        litcon.Text += string.Format(@"</tr>
              <tr>
                <td align='center'>展厅人气：<span class='dianmp_date'>{0}</span></td>
              </tr>
          </table>",cls.ViewCount);
    }
}